package xyz.jcat.sca.example.lagou.resume.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import xyz.jcat.sca.example.lagou.resume.service.IResumeService;
import xyz.jcat.common.web.Resp;

@RestController
public class ResumeController {

    @Autowired
    private IResumeService resumeService;

    @GetMapping("/user/{userId}/status")
    public Resp getUserResumeStatus(@PathVariable Long userId) {
        int status = resumeService.getUserResumeStatus(userId);
        return Resp.ok(status);
    }

}
